﻿using com.guojin.core.io.message;
using com.guojin.mj.net.message.login;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameHallController
{
    private static GameHallController instance;
    public static GameHallController GetInstance()
    {
        if (instance == null)
        {
            instance = new GameHallController();
        }
        return instance;
    }

    public void OnReceviceMsg716(string msg, Message data)
    {
        AnnouncementRet radio = (AnnouncementRet)data;
        GameData.GetInstance().announcement = radio.announcement;
    }

    public void OnReceviceMsg730(string msg, Message data)
    {
        if (GameObject.Find("BuyRoomCardPage(Clone)"))
        {
            BuyRoomCardPage.GetInstance().OnReceiveMsg730(msg, data);
        }

        if (GameObject.Find("ServicePage(Clone)"))
        {
            ServicePage.GetInstance().OnReceiveMsg730(msg, data);
        }      
    }
}
